Smush\Core\Lazy_Load\Video_Embed\Vimeo_Embed S

Total Complexity 45
Dependencies 3
Dependents 1
Total lines 278
Lines of code 192
Logical lines of code 91
Comment lines 33
Methods 19
Properties 4

Methods 19

Method Rating Maintainability Complexity Lines of code
fetch_thumbnail_info()
A
47 7 39
determine_best_non_retina_thumbnail_size()
S
56 6 19
fetch_video_thumbnail()
S
51 4 29
thumbnail_size_exists()
S
64 5 9
get_retina_ratio()
S
63 3 11
prepare_thumbnail_sizes()
S
54 2 22
is_smaller_than_video()
S
77 3 3
get_video_id()
S
72 2 6
prepare_video_id()
S
68 2 7
get_thumbnail_sizes()
S
72 2 6
get_oembed_api_url()
S
63 1 11
__construct()
S
76 1 4
get_name()
S
81 1 3
get_embed_url()
S
82 1 3
can_lazy_load()
S
81 1 3
is_valid_embed_url()
S
80 1 3
determine_best_thumbnail_size()
S
67 1 7
logger()
S
81 1 3
get_cached_video_thumbnail()
S
74 1 4